package com.lrm.blog.service;


import com.lrm.blog.po.Tag;

import com.lrm.blog.po.Type;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface TagService {
    Tag saveTag(Tag tag);//新增

    Tag getTag(Long id);//查询

    Page<Tag> listTag(Pageable pageable);//分页查询

    List<Tag> listTag();

    List<Tag> listTag(String ids);

    Tag updateTag(Long id, Tag tag);

    void deleteTag(Long id);

    Tag getTagByName(String name);

    List<Tag>  listTagTop(Integer size);
}
